package com.lanchetech.dao;

import com.lanchetech.bean.request.PageReq;
import com.lanchetech.entity.Banner;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.List;

@Mapper
public interface BannerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Banner record);

    int insertSelective(Banner record);

    Banner selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Banner record);

    int updateByPrimaryKey(Banner record);

    List<Banner> findAll();

    List<Banner> findAllByScene(@Param("scene") Integer scene);

    Banner findOneByScene(@Param("scene")Integer scene);

    List<Banner> findAllPage(PageReq req);
}